package com.xyzwps.server.paimon.value

enum class VcodeScene(val value: Int) {
    REGISTER(1),
    LOGIN(2),
}

fun Int.toVcodeScene(): VcodeScene = when (this) {
    1 -> VcodeScene.REGISTER
    2 -> VcodeScene.LOGIN
    else -> throw IllegalArgumentException("Invalid VcodeScene value: $this")
}